import com.wyl.pojo.User
import org.junit.Test
import org.springframework.beans.factory.getBean
import org.springframework.context.support.ClassPathXmlApplicationContext

class AnnoTest {
    @Test
    fun test(){
        val context = ClassPathXmlApplicationContext("applicationContext.xml")
        val user = context.getBean<User>("user")
        println(user.name)
    }
}